package cn.wolfcode.Feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "product-service")
public interface ProductFeignApi {
    @PostMapping("/product/addOrder")
    Result<?> addOrder(@RequestBody OrderInfo orderInfo);
}
